package cn.icatw.gulimall.auth.feign;

import cn.icatw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author icatw
 * @date 2022/3/21
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 发送代码
     *
     * @param phone 电话
     * @param code  代码
     * @return {@link R}
     */
    @GetMapping("/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
